<!DOCTYPE html>
<html lang="en">
<?php include "head.php"; ?>
<body id="page1">
<div class="body1">
	<div class="body2">
		<div class="body3">
			<div class="main zerogrid">
<!-- header --><header>
				<?php include "menu.php"; ?>
                                <?php include "slide.php"; ?>
    <?php
    

	if(isset($_POST["nome"])){
            //instancia da classe
            $new = new connectSQL();	
		 
            $dados = array(
                                            "nome"  => $_POST["nome"],
                                            "email"  => $_POST["email"],
                                            "fone"  => $_POST["fone"],
                                            "descricao"  => $_POST["descricao"]
                                            );
            
            $new->Insert("contato", $dados);

            $msg = "Obrigado, Aguarde por nosso Retorno!";

		
		}
		


?>
                </header>
<!-- / header-->
<!-- content -->
                                <section id="content">
					<div class="wrapper">
						<h2>Entre em Contato</h2>
                                                <form id="ContactForm" action="cont.php" method="POST">
							<div>
								<div class="wrapper">
									<span>Nome</span><input type="text" name="nome" id="nome" class="input" >
								</div>
								<div class="wrapper">
									<span> E-mail:</span><input type="text" name="email" id="email" class="input" >								
								</div>
                                                                <div class="wrapper">
									<span> Fone:</span><input type="text" name="fone" id="fone" class="input" >								
								</div>
								<div class="textarea_box">
									<span>Sua Mensagem:</span><textarea name="descricao" cols="1" rows="1"></textarea>								
								</div>
								<span>&nbsp;</span>

                                                                <input type="submit" class="button" >
							</div>
						</form>
					</div>
				</section>
				
			</div>
		</div>
	</div>
</div>
<div class="body4">
</div>
<!-- / content -->
<div class="main zerogrid">
<!-- footer -->
<?php include "footer.php"; ?>
<!-- / footer -->
</div>
<script type="text/javascript"> Cufon.now(); </script>
<script type="text/javascript">
	$(document).ready(function() {
		$('#myRoundabout').roundabout({
			 shape: 'square',
			 minScale: 0.93, // tiny!
			 maxScale: 1, // tiny!
			 easing:'easeOutExpo',
			 clickToFocus:'true',
			 focusBearing:'0',
			 duration:800,
			 reflect:true
		});
	});
</script>
<script src="js/responsiveslides.js"></script>
<script>
	$(function () {
	  $("#slider").responsiveSlides({
		auto: true,
		pager: false,
		nav: true,
		speed: 500,
		maxwidth: 468,
		namespace: "centered-btns"
	  });
	});
</script>
</body>
</html>